﻿using System;
using System.Data;

namespace LantixLBSServer.Web.DbAccess.Helper
{
    /// <summary>
    /// interface trans helper
    /// </summary>
    public interface ITransHelper : IDisposable
    {
        /// <summary>
        ///  Commits the database transaction.
        /// </summary>
        void Commit();

        /// <summary>
        /// Rolls back a transaction from a pending state.
        /// </summary>
        void RollBack();

        /// <summary>
        /// Get the transaction.
        /// </summary>
        IDbTransaction Transaction { get; }
    }
}
